package com.mirana.module.common.model.dictpm;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.FKPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

import java.util.Date;

@Data
@Notes("产品管理")
@TablePlus(name = "dict_product")
public class DictProduct extends BaseModel {

    @Notes("产品名称")
    @ColumnPlus(default_val = "''", length = "20")
    private String product_name;

    @Notes("产品简介")
    @ColumnPlus(default_val = "''", length = "200")
    private String product_introduce;

    @Notes("所属行业，字典 dict2_industry")
    @ColumnPlus(length = "2")
    private int industry;

    @Notes("所属类别（一级），area_info")
    @ColumnPlus(length = "10")
    private int province;

    @Notes("所属地市（二级），area_info")
    @ColumnPlus(length = "10")
    private int city;

    @Notes("所属区县（三级），area_info")
    @ColumnPlus(length = "10")
    private int county;

    @Notes("标签")
    @ColumnPlus(default_val = "''", length = "200")
    private String labels;

    @Notes("方案文档id")
    @ColumnPlus()
    @FKPlus(tableClass = DictPlanDoc.class)
    private Long plandoc_id;

    @Notes("上传公司")
    @ColumnPlus(default_val = "''", length = "50")
    private String upload_company;

    @Notes("上传人")
    @ColumnPlus(default_val = "''", length = "50")
    private String upload_user;

    @Notes("上传时间")
    @ColumnPlus()
    private Date upload_time;

}
